//
//  XXBaseBorderTableViewCell.swift
//  App
//
//  Created by LXF on 2018/9/13.
//  Copyright © 2018年 LXF. All rights reserved.
//

import UIKit

/// 带边框
open class XXBaseBorderTableViewCell<TModel>: XXBaseTableViewCell<TModel> {
    
    open var borderColor:UIColor {
        return FastComponentStyle.style.backgroundColor
    }
    
    open var workerViewBackgroundColor:UIColor {
        return FastComponentStyle.style.foregroundColor
    }
    
    open var borderInset:UIEdgeInsets{
        return UIEdgeInsets.init(t: 4, l: 0, b: 0, r: 0)
    }
    
    override open func prepareContentView() -> UIView {
//        selectionStyle = .none
        
        contentView.backgroundColor = borderColor
        workerView.backgroundColor = workerViewBackgroundColor
        
        contentView.addSubview(workerView)
        contentView.xx.layoutVerticalSubviews(contentInset: borderInset, fill: true)
        return workerView
    }
    
    let workerView = UIView.init()
    
}

